<?php
/**  
* search.supplies.php
* 
* 소모품 검색 파일
* 
*/

require_once($_SERVER['DOCUMENT_ROOT'].'/2013p79/common/_init.php');
require_once(CLASS_PATH."/__autoload.php");

class SearchSupplies extends SuppliesPage
{
 	public function get_content()
	{
		$mod = new Pagemgr($this, 'Supplies', 'Supplies');  //  $this, $controller, $view
		$searchResult = $mod->create();

		$mod   = new Aside($this);
		$aside = $mod->create();

		$mod = new LayoutSearch
		(
			$this,
			array($searchResult),
			array(), //  $aside
			array()
		);
		return $mod->create();
	}
}

$keyString 	= trim($_GET['txtKeyString']);
$stateInfo 	= '&#91;'.strtoupper($keyString).'&#93;로 검색된 소모품';
$page 		= new SearchSupplies;   
$page->isEmpty($keyString);
$page->set_subTitle($stateInfo);
$page->set_info(' 조회 &gt; '.$stateInfo);
$page->set_args($keyString);

$page->create();
echo $page->get_page();

?>